package com.yfp.operation.service;

import com.github.binarywang.wxpay.bean.profitsharing.request.ProfitSharingReceiverRequest;
import com.github.binarywang.wxpay.bean.profitsharing.request.ProfitSharingRequest;
import com.github.binarywang.wxpay.exception.WxPayException;

/**
 * @Description: 微信支付
 *
 * @CreateDate: 2024/6/7 15:45
 * @UpdateUser:
 * @UpdateDate: 2024/6/7 15:45
 * @UpdateRemark: 暂无修改
 * @Version: 1.0
 */
public interface YFPWxPayService {
    /**
     * 分账
     * @param profitSharingRequest
     * @return
     */
    String profitsharing(ProfitSharingRequest profitSharingRequest) throws Exception;


    /**
     * 添加分账接受方
     * @param profitSharingReceiverRequest
     * @return
     * @throws WxPayException
     */
    String addReceiver(ProfitSharingReceiverRequest profitSharingReceiverRequest) throws WxPayException;

    /**
     * 删除分账接收方
     * @param profitSharingReceiverRequest
     * @return
     */
    String removeReceiver(ProfitSharingReceiverRequest profitSharingReceiverRequest) throws WxPayException;

}
